import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs'
import router from './router.js'
import {createPinia} from 'pinia'
// import App from './components/home/aditor.vue'
import App from './App.vue'
import{createPersistedState} from 'pinia-persistedstate-plugin'


const app = createApp(App);
const pinia = createPinia();
const persist = createPersistedState();
pinia.use(persist)
app.use(pinia);
app.mount('#app');
createApp(App).use(ElementPlus,{locale:zhCn,}).use(router).mount('#app')
